<?php if ($unread > 0 ) { ?><div class="messages"><?php echo $unread; ?></div><?php } ?>
